package com.duan.laugh.upms.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.duan.laugh.upms.api.pojo.entity.Pass;
import com.duan.laugh.upms.api.pojo.vo.UserParamsVO;
import com.duan.laugh.upms.mapper.PassMapper;
import com.duan.laugh.upms.service.PassService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 通行证service实现
 *
 * @author duanjw
 */
@Slf4j
@Service
public class PassServiceImpl extends ServiceImpl<PassMapper, Pass> implements PassService {

    /**
     * 根据用户参数查询用户通行证
     * @param userParamsVO
     * @return
     */
    @Override
    public List<Pass> selectByUserParams(UserParamsVO userParamsVO) {
        return baseMapper.selectPassByUserParams(userParamsVO);
    }
}
